The Dreamweaver JavaScript API > File manipulation functions > dom.getCharSet()

 

dom.getCharSet()

Availability

Dreamweaver 4.0

Description

Returns the charset attribute in the meta tag of the document.

Arguments

None.

Returns

The encoding identity of the document. So, for example, in Latin1 document, the function will return iso-8859-1.